<include file="__THEME__/header" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.form.js"></script>
<script type="text/javascript" src="{:U('weibo/plugins/init')}"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.autocomplete.js"></script>

<div class="content"><!-- 内容 begin  --> 
  <include file="__THEME__/center_menu" />
  <div class="main">
    <div class="mainbox">
      
      <div class="mainbox_C">
      <div style="overflow:hidden;">
        
           <div> <form action="{:U('home/Home/qiugou')}" id="quick_search_form" method="post">
    <div class="soso br3">
      <label id="_header_search_label" style="display: block;" onclick="$(this).hide();$('#_header_search_text').focus();">搜同校求购</label>
      <input type="text" class="so_text" value="" name="k" id="_header_search_text" onblur="if($(this).val()=='') $('#_header_search_label').show();"/><input name="" type="button" onclick="$('#quick_search_form').submit()" class="so_btn hand br3"/></div>
	<script>
	if($('#_header_search_text').val()=='')
		$('#_header_search_label').show();
	else
		$('#_header_search_label').hide();
	</script>
</form>
           <h1>{$myschool['school']}</h1></div>
            <div class="tab-menu clear"><!-- 切换标签 begin  -->
              <ul>
                <li><a id="feed_colleague_item" rel="colleague" class="feed_item" href="{:U('home/Home/index')}"><span>销售信息</span></a></li>
				
                <li><a id="feed_all_item" rel="all" class="on feed_item" href="{:U('home/Home/qiugou')}"><span>求购信息</span></a></li>
               
              </ul>
            </div>
            
        <div class="feedBox">
          <div id="countNew"> </div>
          <ul class="feed_list">
<php>if($goodslist){</php>           
            <volist id="vo" name="goodslist">

              <li class="lineD_btm" id="list_{$vo.id}">
                <div class="userPic">
                <space uid="vo.uid" >{uavatar}</space>
                
                </div>
                <div class="feed_c">
                  <div class="msgCnt">{$vo['uname']}:&nbsp;&nbsp; <a href="{:U('shop/index/goods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}">{$vo['title']}</a> </div>
                  <div class="feed_c_btm"> 
	                  <span class="right">
	                    <php>if( $vo['uid'] == $mid ){</php>
	                    <a href="javascript:void(0)" onclick="ui.confirm(this,'确认要删除这信息吗?')" callback="Deleted({$vo.id})">删除</a>&nbsp;&nbsp;
						&nbsp;&nbsp;|&nbsp;&nbsp; 
						<a href="{:U('home/Myqiugou/edit',array('id'=>$vo['id']))}">编辑</a>
	                    <php>}</php>
	                   
			     </span> 
					 <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$vo['qq']}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{$vo['qq']}:45" alt="点击这里给我发消息" title="点击这里给我发消息"></a>&nbsp;&nbsp;  ￥：{$vo['gprice']} &nbsp;&nbsp;  N：{$vo['gnumber']}  &nbsp;&nbsp;<cite><a href="{:U('home/space/detail',array('id'=>$vo['id']))}">{$vo.utime|friendlyDate}</a></cite> 
					 
				  </div>
                  <div id="comment_list_{$vo.id}" style=""></div>
                </div>
              </li>
              </volist>
<php>}else{</php>	
			<li>
                <!--   动态显示方式   -->
                
                    你所在的学校暂求购信息，  点击<a href="{:U('index/Qiugou/index')}">这里</a>查看更多
                  
			</li>
<php>}</php>			  
          
          </ul>
		  
          	
		  
        </div>
        <div class="page">{$page} </div>
        </div>
        <div class="c"></div>
      </div>
    </div>
  </div>
</div>
<!-- 内容 end --> 

<script>
function Deleted(goods_id){
    $.post(U('home/Myqiugou/doDel'),{id:goods_id},function(rel){
	    if(rel==1){
		$('#list_'+goods_id).remove();
		ui.success('删除成功');
		ui.box.close();
		}else{
		ui.error('删除失败');		
		}
	
	});

}
</script>


<include file="__THEME__/footer" /> 